<?php

namespace app\api\model;

use think\Model;

class BannerItem extends BaseModel {
    protected $hidden = ['id','delete_time','update_time','img_id','banner_id'];
    // protected $visible = ['']
    public function img(){
        // 一对一是belongTo
        return $this->belongsTo('Image','img_id','id');
    }
}
